package com.drug.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * 退货单
 */
@Data
public class ReturnGoods {
    private Integer rgId;

    private String rgNumber;

    private Integer rgDiid;

    private Integer rgSurid;

    private Integer rgPoid;

    private String rgName;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date rgReturnTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date rgEstablishmentTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date rgSubmissionTime;

    private Integer rgUId;

    private String rgContacts;

    private String rgPhone;

    private String rgPoper;

    private String rgRemarks;

    private String rgState;

    private String rgReturnReason;

    private Integer rgReturnsNumber;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    private Integer isdel;

    private PurchaseOrder purchaseOrder;

    private DrugQualityLevel drugQualityLevel;

    private DrugCategory drugCategory;

    private DrugAtegory drugAtegory;

    private DrugInformation drugInformation;

    private Hospital hospital;

    private Manufacturer manufacturer;

    private Combine combine;

    private DirgRg dirgRg;
    private List<DirgRg> dirgRgs;

}